home *** CD-ROM | disk | FTP | other *** search
Text File | 1993-06-08 | 1.1 KB | 23 lines | [TEXT/ToyS] |
-
- tell application "Canvas™ 3.0"
- Built In Tool 6 --get ready to build a circle
- New Object --create the new object, 75 pixels by 75 pixels is default
- Move the selection to this location {25, 25} --change the screen location of the object
- -- Set Backcolor in RGB {65535, 1966, 1966} -- will work in future versions of core.
- Set Fill Pattern 10 --set to slant-gray
- Set Pen Size 55 -- set it to 3 pixels by 3 pixels pen size (the pen size at that position in the palette)
-
- Built In Tool 3 --Get ready to create a square
- New Object -- dump the new object on the screen at 75x75
- Move the selection to this location {200, 25} --move it near the top of the screen
- --Set Backcolor in RGB {6521, 65535, 63655} -- reserved for future Canvas core
- Set Fill Pattern 5 -- set it to regular gray.
- Set Pen Size 66 --set a weird pen size
- Execute a Menu Command {14, 258} -- choose "Select All" from the Edit menu.
- -- now duplicate the selection a bunch of times down the screen
- repeat with i from 1 to 10
- Execute a Menu Command {16, 258}
- end repeat
- Execute a Menu Command {5, 18}
- end tell
-